package com.cpj.bsyyzx.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cpj.bsyyzx.entity.Bed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 五个臭皮匠
 * @since 2021-04-27
 */
public interface BedMapper extends BaseMapper<Bed> {
    @Select("SELECT bed_num from bed where status=0 ")
    List<Bed> selectBedNum(@Param(Constants.WRAPPER) Wrapper<Bed> bedWrapper);

}
